package com.rzjm.exercise.module.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rzjm.exercise.common.base.service.impl.BaseServiceImpl;
import com.rzjm.exercise.module.dao.SurveyUserRecordDao;
import com.rzjm.exercise.module.domain.SurveyUserRecord;
import com.rzjm.exercise.module.service.SurveyUserRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 问卷调查的用户填报数据Service业务层处理
 *
 * @author ruoyi
 * @date 2021-09-05
 */
@Service
public class SurveyUserRecordServiceImpl extends BaseServiceImpl<SurveyUserRecordDao,SurveyUserRecord>
        implements SurveyUserRecordService {

    @Resource
    private SurveyUserRecordDao surveyUserRecordDao;

    @Override
    public List<SurveyUserRecord> getPageByUserId(Page<SurveyUserRecord> page, Map<String, Object> map) {
        return surveyUserRecordDao.getPageByUserId(page,map);
    }

    @Override
    public List<SurveyUserRecord> getExportListByUserId(Map<String, Object> map) {
        return surveyUserRecordDao.getExportListByUserId(map);
    }

    @Override
    public List<SurveyUserRecord> getExportListByUserIdPage(Map<String, Object> map, int offset, int pageSize) {
        return surveyUserRecordDao.getExportListByUserIdPage(map,offset,pageSize);
    }
}
